type TPLData = {
    attr: TPLAttr,
    children: ImgBlock[]
}

type TPLAttr = {
    width: number,
    height: number
}

type ImgBlock = {
    type: "TextBlock" | "CodeBlock" | 'ImageBlock';
    type2: "QRCode" | "DMCode" | "BarCode";
    value: string;
    attr: any;
    href?: string
}

declare class QRCode {
    constructor(divElement: HTMLDivElement, param: any);
    static CorrectLevel: { L: number };
    clear(): void;
}

declare class Bwipjs {
    toCanvas(canvas: HTMLCanvasElement, option: any): void;
}
declare var bwipjs: Bwipjs